#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main() {
	int arr[] = { 1,2,3,4,5,6,7,4,2,3};
	int j = 0;
	int n = 0;
	int sz = sizeof(arr) / sizeof(arr[0]);
	int right = sz-1;
	int left = 0;
	while (left < right) {
		if (arr[left] % 2 == 0 && arr[right] % 2 != 0) {
			int tmp = arr[left];
			arr[left] = arr[right];
			arr[right] = tmp;
			left++;
			right--;
		}
		else if (arr[left] % 2 != 0) {
			left++;
		}
		else if (arr[right] % 2 == 0)
		{
			right--;
		}
	}

	for (n = 0; n < sz; n++) {
		printf("%d", arr[n]);
	}
}